<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>test</title>
</head>

<body>
  <button id="click">click</button>
  <h1 id="content"></h1>

  <script>
    function add() {
      const argsList = arguments.slice(1)
      let sum = 0
      return function(...arg) {
        argsList.push(...arg)
         
      }
    }
    
  </script>
</body>

</html>